package cn.wx.controller;

import cn.wx.service.PushDailyWechat;
import me.chanjar.weixin.common.error.WxErrorException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 */
@RestController
@RequestMapping( "/wx")
public class TestController {

    @Autowired
    private PushDailyWechat pushDailyWechat;

    @GetMapping("/test")
    public void pushDailyWechat() throws WxErrorException {
        pushDailyWechat.pushWechat();
    }
}
